package cn.zmwh.bbs.modules.ums.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户消息
 * </p>
 *
 * @author dmzmwh
 * @since 2025-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_message")
@ApiModel(value="UserMessage对象", description="用户消息")
public class UserMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "被操作")
    private Long uid;

    @ApiModelProperty(value = "文章ID")
    private String articleNo;

    @ApiModelProperty(value = "文章标题")
    private String articleTitle;

    @ApiModelProperty(value = "评论ID")
    private Long commentId;

    @ApiModelProperty(value = "操作人")
    private Long optUid;

    @ApiModelProperty(value = "发送人昵称")
    private String sendNickName;

    @ApiModelProperty(value = "0:系统消息 1:评论 2:文章点赞  3:评论点赞 4:附件下载")
    private Integer messageType;

    @ApiModelProperty(value = "消息内容")
    private String messageContent;

    @ApiModelProperty(value = "1:未读 2:已读")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
